
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <errno.h>

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>

typedef struct sockaddr SA;


static void connect_alarm(int signo){


    return;
}

int connect_timeo(int sockfd, const SA * saptr, socklen_t salen, int nsec){


    signal(SIGALRM,connect_alarm);
    if(alarm(nsec) == 0){

	    printf("connect timeo: alarm was already set.\n");
	    return;
    }    
}
